//
//  Apple.m
//  OC02_作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Apple.h"

@implementation Apple

- (void)information {
    NSLog(@"colour:%@, weidao:%@", _colour, _weiDao);
}

//- (void)setColour:(NSString *)colour {
//    _colour = colour;
//}
//- (NSString *)colour {
//    return _colour;
//}
//
//- (void)setWeiDao:(NSString *)weiDao {
//    _weiDao = weiDao;
//}
//- (NSString *)weiDao {
//    return _weiDao;
//}

- (instancetype)initWithColour:(NSString *)colour
                        weiDao:(NSString *)weiDao {
    self = [super init];
    if (self) {
        _colour = colour;
        _weiDao = weiDao;
    }
    return self;
}

+ (instancetype)appleWithColour:(NSString *)colour
                         weiDao:(NSString *)weiDao {
    Apple *apple = [[Apple alloc] initWithColour:colour weiDao:weiDao];
    return apple;
}

@end
